package com.example.backend.dao;

import com.example.backend.pojo.Room;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoomRepository extends JpaRepository<Room, Integer> {
    List<Room> findAll();
    Room findRoomById(Integer id);
    Room findRoomByName(String name);
    Room findRoomByCreator(String creator);
    void deleteById(Integer id);
}
